// ZoomTheShape.cpp : implementation file
//

#include "stdafx.h"
#include "DrawGraph.h"
#include "ZoomTheShape.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CZoomTheShape dialog


CZoomTheShape::CZoomTheShape(CWnd* pParent /*=NULL*/)
	: CDialog(CZoomTheShape::IDD, pParent)
{
	//{{AFX_DATA_INIT(CZoomTheShape)
	m_nZoomNum = 0;
	//}}AFX_DATA_INIT
}


void CZoomTheShape::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CZoomTheShape)
	DDX_Text(pDX, IDC_SCALING_EDIT, m_nZoomNum);
	DDV_MinMaxUInt(pDX, m_nZoomNum, 1, 20);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CZoomTheShape, CDialog)
	//{{AFX_MSG_MAP(CZoomTheShape)
	ON_BN_CLICKED(IDC_RADIO1, OnRadio1)
	ON_BN_CLICKED(IDC_RADIO2, OnRadio2)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CZoomTheShape message handlers


void CZoomTheShape::OnRadio1() 
{
	// TODO: Add your control notification handler code here
	m_IsEnlarge = TRUE;
}

void CZoomTheShape::OnRadio2() 
{
	// TODO: Add your control notification handler code here
	m_IsEnlarge = FALSE;
}

void CZoomTheShape::setEnlarge( BOOL IsLarge)
{
	m_IsEnlarge = IsLarge;

}
